//
//  UIView+Layout.h
//
//  Created by mouxiaochun on 15/5/22.
//  Copyright (c) 2015年 MacMini. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView(Layout)

@property CGPoint origin;
@property CGSize size;

@property CGFloat x;
@property CGFloat y;
@property CGFloat height;
@property CGFloat width;

@property CGFloat centerX;
@property CGFloat centerY;
@property (readonly) CGFloat relativeX;
@property (readonly) CGFloat relativeY;

/**
 *  获取view在对应view的位置,不在的话返回一个无限大的位置
 *  @param inView 容器view
 *  @return 当前view在容器view中的位置
 */
- (CGPoint)loactionInView:(UIView*)inView;

@end
